In biology class, when talking about plants, going over how fruit trees make fruit sweet to attract animals to eat it so it spreads it's seeds, etc. There is some type of intelligence in that.
I mean you no offense, but this statement by you reveals that you do not fully understand the concept of natural selection. Complexity and suitable "design" is "built" incrementally into a species over very long periods of time because those traits - and hence those genes - that give an organism an advantage at survival and reproduction naturally increase in frequency and degree as those organisms with those traits live longer and reproduce more. The environment filters those traits most suited to it.
But keep in mind the environment is not just the inanimate surroundings. It includes other animals that a species interacts with. Now at some point early in history plants might have produced seeds with quite a wide variety of traits - some plants would have produced seeds with food for the seed to use to start germinating. Of course the amount of food produced by each plant together with its seeds would vary. Also the sugar content of the food would also vary.
At the same time animals are also evolving in their environment which includes plants. Animals with the traits that enabled them to make use of plant food evolved to suit an environment of eating plant food. Naturally, the traits of taste would vary from animal to animal. Those animals that preferred the sweet taste produced by some plants together with their seeds would have had an advantage because they got higher energy food from those plants meaning they can go longer on less food because of the high energy content of sweeter fruits. So gradually the species evolved to prefer sweet fruits.
At the same time those plants who happened to produce sweet food with their seed now got a survival advantage because since animal species evolved to prefer that taste it means those plants get more feeders and hence more dispersers of their seeds. So those plants producing sweet tasty foods with their seeds naturally continued evolving along this line and gradually the food packaged with the seeds grew more and more since increasing size of the food package is the trait that would be advantageous in an environment of animal dispersers eating the plant food.
So plants and animals evolved in tandem with each other mutually selecting each others traits in an evolutionary ballet to arrive at the situation today where plants produce sweet fruits that animals are attracted to and spread the seeds.
Think of it this way: Evolution is not by chance. Evolution is actually by design - design without purposeful conscious intelligence. Design that occurs incrementally over a very long periods of time due to natural laws of physics interacting with statistical probabilities inherent in genetics and reproduction. The animal species is thus essentially "sculpted" by its environment. Think of sand dunes. They are shaped in a particular way, not by intelligence but by the action of the wind - by a natural, unintelligent, purposeless force. Think of a hurricane. A hurricane is actually an engine! It is designed by its environment - the prevailing atmospheric conditions and the laws of physics shape it into the marvelous symmetrical spiral engine that it is. You need to get rid of the notion that design necessarily requires purposeful intelligence. One of the fundamental principles at the heart of sustainable designs arising in the natural world is the concept of positive feedback loop. Once a phenomenon results in a positive feedback loop its existence continues and may even get greater. This is what happens with hurricanes.